#include "PowerRuneDetection.hpp"
#include <cstdlib>
#include <ctime>

int main()
{
    VideoCapture cap;
    Mat srcImage;
    cap.open("D:/PowerRune/RM19windmillDemo-master/blz_blue_1.mp4");
    //cap.open("D:/PowerRune/RM19windmillDemo-master/blue_1.avi");
    double fps = cap.get(CAP_PROP_FPS);
    PowerRuneDetector power(fps);
    Point2f target;
    while(true)
    {
        if(!(cap.read(srcImage))) break;
        power.detect(srcImage, 1, 0.1, 0, 0, target);
        /*srand((int)time(0));
        energy.EnergyDetector(srcImage, 1, 0.1, rand() % 50, rand() % 50, target);*/
    }
    // std::cout<<"aaa"<<std::endl;
}